System and method for performing virtual device I/O operations

ABSTRACT

Systems, methods, apparatus and software can make use separated I/O processors and strategy processors in performing virtual device I/O operations. I/O processors operating on cluster nodes, storage appliance ports, or other devices can receive I/O operation requests directed to virtual devices, e.g., volumes or virtual logical units. Information about the request is forwarded to a strategy processor, operating independently or as part of larger volume management software where corresponding physical device I/O operations are determined. The physical device I/O operations are sent back to the I/O processor which executes the operations and/or passes the operation on to the appropriate storage device.

This application is a continuation of U.S. application Ser. No.10/330,378, filed Dec. 27, 2002 now U.S. Pat. No. 6,839,740, entitled“System and Method for Performing Virtual Device I/O Operations,” andnaming Oleg Kiselev as the inventor.

FIELD OF THE INVENTION

The present invention relates to the field of distributed computersystems and, more particularly, to enhancing storage virtualizationschemes in distributed computer systems.

BACKGROUND OF THE INVENTION

Distributed computing systems are an increasingly important part ofresearch, governmental, and enterprise computing systems. Among theadvantages of such computing systems are their ability to handle avariety of different computing scenarios including large computationalproblems, high volume data processing situations, and high availabilitysituations. For applications that require the computer system to behighly available, e.g., the ability to maintain the system while stillproviding services to system users, a cluster of computer systems is auseful implementation of the distributed computing model. In the mostgeneral sense, a cluster is a distributed computer system that workstogether as a single entity to cooperatively provide processing powerand mass storage resources. With a cluster, the processing load of thecomputer system is typically spread over more than one computer, therebyeliminating single points of failure. Consequently, programs executingon the cluster can continue to function despite a problem with onecomputer in the cluster. In another example, one or more computers ofthe cluster can be ready for use in the event that another computer inthe cluster fails. While each computer in a cluster typically executesan independent instance of an operating system, additional clusteringsoftware is executed on each computer in the cluster to facilitatecommunication and desired cluster behavior.

FIG. 1 illustrates a simplified example of a cluster 100. The members ofthe cluster include Server A 140 and Server B 145. As members of cluster100, servers 140 and 145 are often referred to as “hosts” or “nodes.”Thus, a node in a computer cluster is typically an individual computersystem having some or all of the software and hardware componentsillustrated and as is well known in the art. FIG. 5 (described below)illustrates some of the features common to cluster nodes. Another commonfeature of a cluster is the ability of the nodes to exchange data. Inthe example of FIG. 1, servers 140 and 145 can exchange data overnetwork 120, typically a local area network (LAN), e.g., anenterprise-wide intranet, or a wide area network (WAN) such as theInternet. Additionally, network 120 provides a communication path forvarious client computer systems 110 to communicate with servers 140 and145. In addition to network 120, servers 140 and 145 can communicatewith each other over private network 130. As shown, private network 130is only accessible by cluster nodes, i.e., Server A 140 and Server B145. To support the high availability of cluster 100, private network130 typically includes redundancy such as two network paths instead ofone. Private network 130 is used by the nodes for cluster servicemessage passing including, for example, the exchange of so-called“heart-beat” signals indicating that each node is currently available tothe cluster and functioning properly. Similar functions can beimplemented using a public network.

Other elements of cluster 100 include storage area network (SAN) 150,SAN switch 160, and storage devices such as tape drive 170, storagearray 180, and optical drive 190. These devices are examples of the typeof storage used in cluster 100. Other storage schemes include the use ofshared direct-attached storage (DAS) over shared SCSI buses. As shown inFIG. 1, both servers 140 and 145 are coupled to SAN 150. SAN 150 isconventionally a high-speed network that allows the establishment ofdirect connections between storage devices 170, 180, and 190 and servers140 and 145. Thus, SAN 150 is shared between the servers and allows forthe sharing of storage devices between the servers to providing greateravailability and reliability of storage. SAN 150 can be implementedusing a variety of different technologies including fibre channelarbitrated loop (FCAL), fibre channel switched fabric, IP networks(e.g., iSCSI), Infiniband, etc.

SAN switch 160, tape drive 170, storage array 180, and optical drive 190are all examples of shared resources. The most common shared resource ina cluster is some form of shared data resource, such as one or more diskdrives. Using a shared data resource gives different nodes in thecluster access to the same data, a feature that is critical for mostcluster applications. Although a disk device (and various relateddevices such as storage array 180) is perhaps the most common example ofboth a shared resource and a shared data resource, a variety of othertypes of devices will be well known to those having ordinary skill inthe art. Moreover, although servers 140 and 145 are shown connected tostorage array 180 through SAN switch 160 and SAN 150, this need not bethe case. Shared resources can be directly connected to some or all ofthe nodes in a cluster, and a cluster need not include a SAN.Alternatively, servers 140 and 145 can be connected to multiple SANs.Additionally, SAN switch 160 can be replaced with a SAN router or a SANhub.

One well known problem among computer system clusters is thecoordination of input/output (I/O) operations on the shared resources.Since multiple nodes have access to the same data resources, care mustbe taken to ensure that data is not corrupted, e.g., because ofuncoordinated write operations to the same logical or physical portionsof a storage device or read operations that do not present datareflecting the most recent updates.

A variety of software mechanisms, as illustrated in FIG. 1, are employedto both enable clustering functionality and prevent data corruption. Acluster volume manager virtualizes shared storage so as to present aconsistent view of shared storage, typically in a logical format such asone or more volumes, to all nodes of the cluster. Additionally, acluster volume manager allows an administrator to configure andreconfigure shared storage. In some implementations, thisreconfiguration can be accomplished without interrupting applications'access to the storage. A cluster monitor regularly checks the status or“health” of each node in the cluster to quickly and reliably determinewhen a node stops functioning (or stops functioning properly) and informthe remaining nodes so that they can take appropriate action. In someembodiments, a cluster messaging service, which can be a part of clustermonitor and/or a separate software or hardware system, exists to quicklyand reliably communicate cluster-critical information among the nodes ina secure manner. Finally, a cluster locking mechanism providesdistributed locks that are used by instances of a cluster application toachieve proper coordination. In some embodiments, this is achievedthrough the use of a formalized distributed lock manager. In still otherembodiments, the lock management is implemented in an ad hoc fashionusing the messaging services to communicate and coordinate the state.These software tools operate in conjunction with applications, databasemanagement systems, file systems, operating systems, etc., to providedistributed clustering functionality.

In one approach to I/O coordination, one node is elected as master ofall the shared storage and the remaining nodes are slaves. The masternode can typically change disk configurations and maintains control overdisk areas used for transaction logs. The master node also reads volumemanagement metadata from all of the disks and maintains this mappingbetween each logical block of the volume and one or more physical blocksof the disks. Slave nodes must obtain copies of this volume managementmetadata in order to have knowledge of the volume organization.Moreover, if there are changes to the volume configuration, that changemust be communicated to all of the slaves using, for example, amessaging protocol and/or a system of shared and exclusive locks on thevolume management metadata.

In clustering systems where changes to volume configuration occurfrequently, the added system resource overhead needed to make all nodesaware of the changes can be burdensome. Accordingly, it is desirable tohave a more scalable and flexible scheme for performing I/O operationson shared resources in a clustering environment.

SUMMARY OF THE INVENTION

It has been discovered that systems, methods, apparatus and software canmake use separated I/O processors and strategy processors in performingvirtual device I/O operations. I/O processors operating on clusternodes, storage appliance ports, or other devices can receive I/Ooperation requests directed to virtual devices, e.g., volumes or virtuallogical units. Information about the request is forwarded to a strategyprocessor, operating independently or as part of larger volumemanagement software where corresponding physical device I/O operationsare determined. The physical device I/O operations are sent back to theI/O processor which executes the operations and/or passes the operationon to the appropriate storage device.

Accordingly, one aspect of the present invention provides a method. Avirtual device input/output (I/O) operation request is received.Information from the virtual device I/O operation request is extracted.A message using the information from the virtual device I/O operationrequest is formed. The message is transmitted to a strategy processor.

In another aspect of the present invention, a system includes a firstmemory and an input/output (I/O) processor. The input/output (I/O)processor is configured to receive a virtual device I/O operationrequest; store the virtual device I/O operation request in the memory;form a message using information from the virtual device I/O operationrequest; and transmit the message to a strategy processor.

Yet another aspect of the present invention provides an apparatusincluding a means for receiving a virtual device input/output (I/O)operation request; a means for forming a message using information fromthe virtual device I/O operation request; and a means for transmittingthe message to a means for strategizing virtual device I/O operationrequests.

The foregoing is a summary and thus contains, by necessity,simplifications, generalizations and omissions of detail; consequently,those skilled in the art will appreciate that the summary isillustrative only and is not intended to be in any way limiting. As willalso be apparent to one of skill in the art, the operations disclosedherein may be implemented in a number of ways including implementationin hardware, i.e. ASICs and special purpose electronic circuits, andsuch changes and modifications may be made without departing from thisinvention and its broader aspects. Other aspects, inventive features,and advantages of the present invention, as defined solely by theclaims, will become apparent in the non-limiting detailed descriptionset forth below.

BRIEF DESCRIPTION OF THE DRAWINGS

A more complete understanding of the present invention and advantagesthereof may be acquired by referring to the following description andthe accompanying drawings, in which like reference numbers indicate likefeatures.

FIG. 1 is a simplified block diagram of a computer system cluster.

FIG. 2 is a simplified block diagram of computer system clusterutilizing some of the systems and methods of the present invention.

FIG. 3 is a simplified block diagram of computer system including a SANswitch utilizing some of the systems and methods of the presentinvention.

FIG. 4 is a flow chart illustrating techniques of the present invention.

FIG. 5 is a block diagram of a computer system for implementing thetechniques of the present invention.

DETAILED DESCRIPTION

The following sets forth a detailed description of at least the bestcontemplated mode for carrying out the one or more devices and/orprocesses described herein. The description is intended to beillustrative and should not be taken to be limiting.

FIG. 2 illustrates a simplified block diagram of computer system cluster200 utilizing some of the systems and methods of the present invention.In the example of FIG. 2, cluster 200 includes two nodes 210 and 250, inmany ways similar to the servers 140 and 145 of FIG. 1. In this example,certain hardware and software components associated with each of thenodes are not shown in order to aid clarity. Both node 1 210 and node 2250 execute one or more applications 220 and 260 respectively. Suchapplications can include, but are not limited to, databaseadministration systems (DBMS), file servers, application servers, webservers, backup and restore software, customer relationship managementsoftware, and the like. The applications 220 and 260, other nodesoftware not shown, e.g., operating systems, and file systems, andapplications executing on client computer systems 110 can initiate orrequest that I/O operations be executed against storage devices such astape drive 170, storage array 180, and optical drive 190. These I/Ooperations typically include read and write operations to logical orvirtual devices such as volumes, physical disk or flash memory devicesattached over SCSI, IDE or other means, and virtual logical units (LUNs)designed to appear and operate as SCSI LUNs.

Node 1 210 includes a complete volume manager 230 implementation thatprovides core storage virtualization services such as those provided byconventional volume managers. Volume manager software enables physicalresources configured in the computer system to be managed as logicaldevices or volumes. Software such as volume manager 230 can be part ofthe operating system executing on node 210, or it can comprise one ormore specialized components such as the VERITAS Volume Manager™ productprovided by VERITAS Software Corporation. In addition to the typicalvolume management functions provided by volume manager 230, specializedfunctions as implemented by I/O interface 233, used by applications toaccess logical volumes, virtual LUNs or other virtual device metaphorsexported by a volume manager, virtualization strategy 236, and I/Ointerface 239 are also included. Although illustrated as part of volumemanager 230, I/O interface 233 (used by a volume manager to issue I/Osto storage devices), virtualization strategy 236, and I/O interface 239can be implemented as separate modules that work in conjunction withvolume manager 230. I/O interface 233 can distinguish between I/Ooperation requests that are directly associated with node 1 210, e.g.,requests from applications 220 and requests from client computer systems110 but directed to node 1 210, and remote I/O operation requestsreceived from other nodes such as node 2 250.

In another embodiment, virtualization strategy 236, rather than or inaddition to I/O interface 233, can distinguish between I/O operationrequests that are directly associated with node 1 210 and remote I/Ooperation requests received from other nodes. Thus, virtualizationstrategy 236 can receive I/O operation requests from I/O interface &extraction 273 of node 2 250. Processed I/O operation requests can thenbe directly routed back to I/O interface 279 of node 2 250, rather thanbeing passed through I/O interface 239 of node 1 210.

In still another embodiment, node 1 210 need not need have its ownapplication-accessible I/O interfaces, e.g., I/O interfaces 233 or 239.Instead, node 1 210 can perform its I/O operations “by proxy.” Forexample, node 1 210 can transfer data to I/O-dedicated nodes, such asnode 2 250, and then inform such nodes how to write the data to storagedevices. Similarly, node 1 210 can request such node's I/O engine toallocate memory and then inform the node how to read data from thestorage devices into memory and transfer the contents of memory back tonode 1 210.

Node 2 250 is illustrated as not having a complete volume manager, butinstead includes an I/O processor 270 designed to operate in conjunctionwith I/O interface 233, virtualization strategy 236, and I/O interface239 of volume manager 230. In general, node 2 250 can include morecomplete volume manager software, but that additional functionality istypically not used. For example, virtualization of shared storage (e.g.,layout information for virtual devices), volume configuration, volumereconfiguration, and volume management functions for all nodes incluster 200 are handled by volume manager 230. Thus, volume manager 230coordinates I/O streams for all nodes in the cluster and manages volumemanager metadata. Concentrating this functionality in a single nodeprovides a single point for critical I/O decisions to be made andenhance the ability of the cluster to scale in size. In someimplementations, volume manager 230 serves only to manage I/O operationsfrom other nodes, i.e., it is configured to process and/or receive I/Ooperation requests directly. In this manner, a single supervisory nodefor the entire cluster can be implemented.

I/O processor 270 presents the appearance of virtual devices such asvolumes or virtual LUNs to applications 260, other software operating onnode 2 250, and applications operating on client computer systems 110that interact with node 2 250. However, when a request for a virtualdevice I/O operation is sent to I/O processor 270, I/O interface &extraction 273 receives the request and extracts information about therequest. That information can include, for example, the virtual devicedestination for the I/O operation, information about data associatedwith the operation (e.g., size of data to be written, buffer addressesfor data to be written), and any other metadata useful for completion ofthe I/O operation. I/O interface & extraction 273 prepares a messageincluding this information and transmits that message to volume manager230. Additionally, I/O interface & extraction 273 will also typicallyallocate buffer space in buffers 276 in order to, for example, provide aplace to temporarily store data to be written to a storage device and toprovide a place to temporarily store data read from a storage device.

In some embodiments, additional information about the I/O operationrequest can be sent to the I/O processor. Such information can include,but is not limited to: (1) for systems that cache data, information(“hints”) about cache management such as an instruction not to retainthe data because the application knows the data will not be needed againvery soon, and an instruction to “cache until further notice” forsystems where an I/O operation request to read the same data is expectedfrom a cooperating application on another remote host; (2) I/O priorityinformation, e.g., some I/O operation requests can be prioritized asopportunistic and asynchronous rather than immediately performed; (3)desired latency of I/O operation completion for real-time applicationslike telemetry storage or video streaming, and/or instructions to dropthe current I/O operation and return an error if the I/O operation doesnot complete in a specified amount of time; (4) for storage systems thatcan perform encryption and decryption of the I/O stream, user orapplication-specific cryptographic keys for use with the data; (5) “donot retry” directives for high priority I/O operations so that thestorage system responds to the application with the result of its firstattempt to perform the I/O operation even if it encounters a correctableor retriable error; and (6) for storage systems that can inform theapplication that the storage is mirrored or versioned, an instruction tothe storage system to send a specific I/O to a specific mirror, copy orversion of the data.

Once a message is received from another node and identified as a remoteI/O request, virtualization strategy module 236 creates one or morephysical device I/O operations to be passed back to I/O processor 270for execution. Virtualization strategy module 236 determines the properphysical device I/O operations using the information received from I/Oprocessor 270, e.g., a virtual device destination, and information aboutthe virtualization of shared storage in the cluster, and creates arefined and decomposed request to send back to I/O processor 270.Because virtualization strategy module 236 is part of node 1 210, it hasaccess to the necessary volume/virtual-LUN information. Node 2 250 neednot be updated with such information, and any resource locking needed toprevent data corruption can be handled by node 1 210.

For example, the message from I/O processor 270 might indicate a requestto read (as resolved by, for example, a file system) logical blocks 0–99of volume A. Node 2, 250 and I/O processor 270 generally have noinformation about the physical location of that data. Instead,virtualization strategy module 236 uses a description of the storagevirtualization scheme to prepare physical device I/O operations thatwill read the desired data, e.g. read blocks 0–24 from disk A and blocks25–49 from disk B. These physical device I/O operations are passed backto I/O processor 270. I/O interface 279 performs these operations by,for example, passing them on to device drivers 280, which in turn useplatform hardware 285, e.g., a host bus adapter, to present the commandsto the appropriate storage device. Alternately, I/O interface 279 mayfurther interpret the physical device I/O operations to perform therequested I/O operation.

The set of physical I/O transfer commands produced by virtualizationstrategy module 236 and sent to I/O processor 270 to perform on data canbe arbitrarily complex and can include, but is not limited to,instructions that accomplish I/O operations to striped, mirrored, andconcatenated storage as well as other storage geometries. In someimplementations, virtualization strategy module 236 can instruct I/Oprocessor 270 to write additional data associated with the I/O operationrequest being processed, such as data to a change or data log, orwriting a change map associated with the I/O operation. In otherimplementations, the virtualization strategy module 236 can require aseries of read and write operations that will repair or refresh mirroreddata, or write data to multiple locations on the storage devices tofacilitate data migration and reorganization. In still otherimplementations, the virtualization strategy module 236 can alsoinstruct I/O processor 270 to perform certain computations on the data.These computations can include, but are not limited to, encryption ofdata, calculation of checksums, recalculation of RAID-S parity, andgeneration of error correction information.

In an alternate embodiment, volume manager 230 passes all I/O operationrequests through virtualization strategy module 236, and determineswhether the request was a remote request, i.e., whether the resultingphysical device I/O operations should be sent to another node or passedto drivers 240, only after the I/O operation is fully strategized.Moreover, because all I/O strategizing is handled by one node, otheroperations that are performed in support of volume management, e.g.,mirroring, first write logging, and dirty region logging, are safelyhandled by one entity. There is no need for complicated distributedlocking mechanisms, distributed transactions, or distributing the stateof the virtualization scheme. In general, I/O processor 270 (or multipleI/O processors if there are multiple nodes or more than one I/Oprocessor per node) need have no information about any of the othernodes. The I/O processor need only know to which node it must send aremote request.

The messages that are passed between node 1 210 and node 2 250 can becarried along private network 130, LAN/WAN 120, or via some othercommunication means not illustrated. In general, it is desirable toensure a minimum level of service, e.g., latency and bandwidth, for thecommunication of I/O operation requests so that overall systemperformance is not degraded. Additionally, although buffers 276 aretypically used to store data to be written and/or that has been read,other memory structures (not illustrated) can be used for the samepurpose.

FIG. 2 illustrates application of novel systems and methods forperforming virtual device I/O operations to host-based storagevirtualization. Host-based storage virtualization is perhaps the mostcommon virtualization solution and is termed “host-based” becausevirtualization is implemented at the host computer system, e.g., server,level. Host-based virtualization is typically either packaged with theoperating system or made available as an add-on product. Host-basedvirtualization allows administrators to access advanced storagemanagement functions such as mirroring, RAID sets, redundant pathing,and hot backups (by using mirror splits or snap-shots). However, it addssome additional overhead to the host system and the management of thevirtualization, at least in prior art solutions, is typically performedon a host-by-host basis, making global storage management difficult.

An alternative to host-based virtualization is storage-basedvirtualization. Storage-based virtualization solutions typicallyimplement intelligent storage devices such as intelligent storage arraysthat implement virtualization functions. For example, such devices canallow for movement between different RAID groups without data loss, aswell as automatic migration of data from one RAID group to another basedupon the frequency of data access. In addition, these products typicallypermit the creation of multiple data mirrors, which provide additionalavailability when one of the mirrors is split for hot backups.Storage-based virtualization can also be advantageous in providing theflexibility to modify LUN size, the ability to have multiple hosts seethe same LUNs (which is particularly critical with high availabilityclustering), and remote replication.

Still another alternative to host-based virtualization isappliance-based virtualization. Appliance-based virtualization providesusers with virtualization between the hosts and the storage. Using astorage appliance such as a specialized switch, router, server, or otherstorage device, appliance-based virtualization allows for the same levelof control and centralization across the storage architecture. There aretwo kinds of appliance-based virtualization products: in-band andout-of-band. An in-band virtualization appliance is physically locatedbetween the host and the storage. The appliance takes the disk requestsfrom the host and fulfills the host's request from the storage attachedto the other side of the appliance. This functionality is essentiallytransparent to the host because the appliance presents itself as disk.The physical location of the appliance is the primary difference betweenout-of-band and in-band appliances. Out-of-band appliances logicallypresent themselves as if they are located between the host and storage,but they actually reside to the side. This is accomplished with theinstallation of a driver under the host's disk driver. The appliancedriver then receives logical to physical block mappings from theappliance.

The systems and methods described above with respect to the host-basedvirtualization scheme of FIG. 2 can in general be applied to bothstorage-based and appliance-based storage virtualization devices. FIG. 3illustrates an example of such an implementation in an in-band,appliance-based storage virtualization system.

FIG. 3 is a simplified block diagram of computer system 300 including aSAN switch 330 utilizing some of the systems and methods of the presentinvention. Computer system 300 includes two host computer systems, e.g.,servers, 310 and 320. Computer system 300 can be implemented as acluster or may simply include several hosts that may or may notinteract. Software operating on hosts 310 and 320 and/or softwareexecuting on client computer systems 110 can initiate or request thatI/O operations be executed against storage devices such as tape drive170, storage array 180, and optical drive 190. However, instead ofstorage virtualization being carried out by one or both of hosts 310 and320, storage virtualization is provided by SAN switch 330.

SAN switch 330 is an example of a storage appliance that can implementthe systems and methods of the present invention. Other devices that canbe utilized include a variety of devices such as general networkswitches, switch-routers, routers, router-switches and other storagenetwork devices. The term “switch” is used in this specification todescribe equipment used to direct information over a network based onaddress information. Those skilled in the art will understand that suchequipment includes, for example, switches and routers. As illustrated,SAN switch 330 includes a volume server 350, a strategy processor 360,and one or more I/O processors 370 interconnected by a crossbarswitching fabric 340. These elements are merely illustrative, and thosehaving ordinary skill in the are will recognize a variety of otherarchitectures that can be used. For example, instead of crossbar 340,other switching architectures, e.g., single-bus, multiple-busarchitectures, and shared-memory architectures, can be used.Additionally, volume server 350, a strategy processor 360, and one ormore I/O processors 370 are each typically implemented as software,microcode, or some combination of the two executing on a general-purposemicroprocessor, general-purpose microcontroller, ASIC, PLD, FPGA, or thelike. In some embodiments, the functionality of two or more of volumeserver 350, a strategy processor 360, and one or more I/O processors 370is implemented in the same software and/or hardware. For example, volumeserver 350 and strategy processor 360 might be combined into a singlesoftware package, like volume manager 230 of FIG. 2. Additionally, therecan me more than one instantiation of each of volume server 350 andstrategy processor 360 in some implementations.

In general, strategy processor 360 serves much the same function as I/Ointerface 233, virtualization strategy 236, and I/O interface 239 ofFIG. 2. Volume server 350 typically implements much of the remainingvirtualization functionality that might otherwise be included in volumemanager 230. For example, volume server 350 can be responsible formaintaining a complete description of the virtualization scheme,configuring and changing volumes, monitoring one or more strategyprocessors, and taking control of certain operations under errorconditions. Thus in many implementations, volume server 350 isessentially a traditional volume manager tailored for the particularenvironment of SAN switch 330 and designed to interoperate with strategyprocessor 360. Although not shown, there is typically at least one I/Oprocessor for each port of SAN switch 330. Each of the I/O processors370 operates much like I/O processor 270 of FIG. 2. Messages can bepassed among various I/O processors 370, strategy processor 360, andvolume server 350 via crossbar 340 or using some other communicationpath (not shown).

Operation of SAN switch 330 in processing virtual device I/O operationrequests is illustrated in greater detail by the flow chart in FIG. 4.Although the processes described in FIG. 4 are specific to the operationof an implementation like that of SAN switch 330, similar process areused in host-based solutions such as that illustrated in FIG. 2.

The process begins when a host initiates a virtual device I/O operationrequest 400. The source of the request is typically an application,operating system component, or file system process operating on a hostcomputer system such as hosts 310 and 320 or on a client computer systemsuch as client computer systems 110. The virtual device I/O operationrequest is typically a read and/or write operation directed to a virtualstorage device such as a volume or virtual LUN. Such a request caninclude data to be written or other parameters for use in processing therequest. The virtual device I/O operation request is directed to an I/Oprocessor, or perhaps one other software/hardware that includes I/Oprocessor functionality. I/O processors typically expose virtual storageinformation to the devices, e.g., hosts 310 and 320, coupled to thecorresponding ports. The I/O processor buffers any associated data andgenerates a remote strategy call, not necessarily in that order, asshown in 410. The process of generating a remote strategy call typicallyincludes one or more of, identifying the virtual device destination ofthe operation, identifying any logical addresses associated with thedata subject to the I/O operation request, preparing an appropriatemessage (e.g., the remote strategy call) that includes this information,and perhaps providing additional information such as setting certainflags.

The remote strategy call is forwarded to the appropriate strategyprocessor where it is strategized (420), e.g., decomposed into refinedphysical device I/O operations that, when executed or passed to storagedevices, yield the desired virtual device I/O operation. Otheroperations can also occur at this time. For example, if certainresources need to be locked to complete the operation, or if certainlogging tasks should be completed before the operation takes place, thetransfer back to the I/O processor of the complete physical device I/Ooperations can be queued for transmission once any associated tasks arecompleted. If an error condition occurs, as determined in 430, controlof the strategizing can be transferred to the volume server as shown at440. For example, if an error requiring a configuration change to thevirtualization of the storage system occurs, e.g., detaching of a mirroror some other concurrent configuration change, control of thestrategizing process can be handed to the volume server. At that point,if the volume server is distinct from the strategy processor, it canassume the role of the strategy processor as well as resolving the errorcondition, or it may simply resolve the error condition and returncontrol to the strategy processor. In the former case, as illustrated instep 450, the volume server strategies the virtual device I/O operationrequest and returns the appropriate physical device I/O operations. Inan alternate embodiment, error conditions can simply cause the I/Ooperation to fail, and a message to that effect can be transmitted backto the I/O processor.

Whether by a strategy processor or by a volume server operating as astrategy processor, the physical device I/O operations are transferredback to the corresponding I/O processor (460). In step 470, the I/Ooperations are performed, typically by transferring the I/O operationsto the corresponding physical device. Data to be written to or read froma device can be temporarily stored in buffers associated with each ofthe I/O processors. Such buffers can be part of memory common to theentire device, memory specific to the I/O processor, or memory shared bymultiple I/O processors. Those having skill in the art will readilyrecognize a variety of different manner in which appropriate databuffering can be performed. Once all of the constituent physical deviceoperations are completed, the I/O processor reports completion of thevirtual device I/O operation to the strategy processor and/or to thevolume server at 480. Any volume management operations that need to beperformed to reflect the I/O operation, e.g., updating storage mappingor transaction logs, can then be performed either by the strategyprocessor, the volume manager, or some combination of the two. Again,such tasks might require locking or restricting certain resources. Thestrategy processor and/or the volume server completes these tasks andnotifies (not shown) the I/O processor which in turn reports completionof the operation to the host that initiated the operation. Before and/orafter the virtual device I/O operation is complete, the I/O processorcan transfer back to the host data associated with the operation. Insome embodiments, the host can read such data directly from the buffersassociated with the I/O processor. The process then terminates at 495.Although not shown, there may be multiple additional messages,acknowledgement messages, transmitted among I/O processors 370, strategyprocessor 360, and volume server 350.

The flow chart of FIG. 4 illustrates some of the many operationalexamples of the virtual device I/O operations disclosed in the presentapplication. Those having ordinary skill in the art will readilyrecognize that certain steps illustrated in FIG. 4 can be eliminated ortaken in an alternate order. Moreover, the methods described in FIG. 4are typically implemented as one or more software programs for acomputer system, that is encoded in a computer readable medium asinstructions executable on one or more processors. The computer readablemedium can be any one of an electronic storage medium, a magneticstorage medium, an optical storage medium, and a communications mediumconveying signals encoding the instructions. Separate instances of theseprograms can be executed on separate computer systems in keeping withthe multi-process methods described above. Thus, although certain stepshave been described as being performed by certain devices, softwareprograms, processes, or entities, this need not be the case and avariety of alternative implementations will be understood by thosehaving ordinary skill in the art.

Additionally, those having ordinary skill in the art will readilyrecognize that the techniques described above can be utilized in avariety of different storage devices and cluster systems with variationsin, for example, the number of nodes, the type of cluster operation(failover, parallel, etc.), the number and type of shared dataresources, the number of paths between nodes and shared data resources,and the number and type of coordinator resources.

FIG. 5 illustrates a block diagram of a computer system 500 forimplementing the fencing techniques of the present invention. Forexample, computer system 500 can be an embodiment of one of thepreviously described cluster nodes. Computer system 500 includes aprocessor 510 and a memory 520 coupled together by communications bus505. Processor 510 can be a single processor or a number of individualprocessors working together. Memory 520 is typically random accessmemory (RAM), or some other dynamic storage device, and is capable ofstoring instructions to be executed by the processor, e.g., applications260 and I/O processor 270. Memory 520 is also used for storing temporaryvariables or other intermediate information during the execution ofinstructions by the processor 510.

Those having ordinary skill in the art will readily recognize that thetechniques and methods discussed below can be implemented in softwareusing a variety of computer languages, including, for example,traditional computer languages such as assembly language, Pascal, and C;object oriented languages such as C++ and Java; and scripting languagessuch as Perl and Tcl/Tk. Additionally, software 260 and 270 can beprovided to the computer system via a variety of computer readable mediaincluding electronic media (e.g., flash memory), magnetic storage media(e.g., hard disk 558, a floppy disk, etc.), optical storage media (e.g.,CD-ROM 560), and communications media conveying signals encoding theinstructions (e.g., via a network coupled to network interface 554).

Computer system 500 also includes devices such as keyboard & mouse 550,SCSI interface 552, network interface 554, graphics & display 556, harddisk 558, and CD-ROM 560, all of which are coupled to processor 510 bycommunications bus 507. It will be apparent to those having ordinaryskill in the art that computer system 500 can also include numerouselements not shown in the figure, such as additional storage devices,communications devices, input devices, and output devices, asillustrated by the ellipsis shown. An example of such an additionalcomputer system device is a fibre channel interface.

Although the present invention has been described with respect to aspecific preferred embodiment thereof, various changes and modificationsmay be suggested to one skilled in the art and it is intended that thepresent invention encompass such changes and modifications fall withinthe scope of the appended claims.

1. A method comprising: receiving a virtual device input/output (I/O)operation request; extracting information from the virtual device I/Ooperation request; forming a new message using the information from thevirtual device I/O operation request, wherein the new message isdifferent from the virtual device I/O operation request; andtransmitting the new message to a strategy processor.
 2. The method ofclaim 1 wherein the virtual device I/O operation request is directed toat least one of a volume and a logical unit.
 3. The method of claim 1wherein the virtual device I/O operation request is received from atleast one of an application program and a host computer system.
 4. Themethod of claim 1 further comprising: receiving data corresponding tothe virtual device I/O operation request.
 5. The method of claim 4further comprising: storing the data in a buffer.
 6. The method of claim1 wherein the information from the virtual device I/O operation requestincludes a virtual device destination.
 7. The method of claim 1 whereinthe new message includes an indication of a remote I/O operationrequest.
 8. The method of claim 1 further comprising: receiving the newmessage at the strategy processor; and the strategy processor forming atleast one physical device I/O operation using the new message.
 9. Themethod of claim 8 wherein the forming at least one physical device I/Ooperation further comprises: using information about organization of atleast one virtual device.
 10. The method of claim 8 wherein the strategyprocessor is part of a volume manager.
 11. The method of claim 8 furthercomprising: transmitting the at least one physical device I/O operationto an I/O processor; and executing the at least one physical device I/Ooperation against at least one storage device.
 12. The method of claim 1further comprising: receiving at least one physical device I/O operationformed using the information from the virtual device I/O operationrequest; and executing the at least one physical device I/O operationagainst at least one storage device.
 13. The method of claim 1 encodedin a computer readable medium as instructions executable on a processor,the computer readable medium being one of an electronic storage medium,a magnetic storage medium, an optical storage medium, and acommunications medium conveying signals encoding the instructions. 14.The method of claim 1, further comprising: the strategy processordecomposing the new message into at least one physical device I/Ooperation configured for a storage device.
 15. A system comprising: afirst memory; and an input/output (I/O) processor configured to: receivea virtual device I/O operation request; store the virtual device I/Ooperation request in the first memory; form a new message usinginformation from the virtual device I/O operation request, wherein thenew message is different from the virtual device I/O operation request;and transmit the new message to a strategy processor.
 16. The system ofclaim 15 further comprising: a first microprocessor coupled to the firstmemory, wherein the I/O processor is encoded as instructions stored inthe first memory and executable on the first microprocessor.
 17. Thesystem of claim 15 wherein at least a portion of the first memory formsa buffer, the buffer storing data corresponding to the virtual deviceI/O operation request.
 18. The system of claim 15 wherein theinformation from the virtual device I/O operation request includes avirtual device destination.
 19. The system of claim 15 wherein the newmessage includes an indication of a remote I/O operation request. 20.The system of claim 15 further comprising: a strategy processor coupledto the I/O processor and configured to receive the new message usinginformation from the virtual device I/O operation request and form atleast one physical device I/O operation using the information from thevirtual device I/O operation request.
 21. The system of claim 20 furthercomprising: a second memory a second microprocessor coupled to thesecond memory, wherein the strategy processor is encoded as instructionsstored in the second memory and executable on the second microprocessor.22. The system of claim 21 wherein the first memory and the I/Oprocessor belong to a first computer system and the second memory andthe second microprocessor belong to a second computer system, the firstcomputer system being coupled to the second computer system via anetwork.
 23. The system of claim 21 further comprising: informationabout organization of at least one virtual device, the information aboutorganization of at least one virtual device being stored in the secondmemory.
 24. The system of claim 20 wherein the strategy processor ispart of a volume manager.
 25. The system of claim 20 wherein thestrategy processor is further configured to transfer the at least onephysical device I/O operation to the I/O processor for execution. 26.The system of claim 15 further comprising: at least one storage devicecoupled to the I/O processor.
 27. An apparatus comprising: a means forreceiving a virtual device input/output (I/O) operation request; a meansfor forming a new message using information from the virtual device I/Ooperation request, wherein the new message is different from the virtualdevice I/O operation request; and a means for transmitting the newmessage to a means for strategizing virtual device I/O operationrequests.
 28. The apparatus of claim 27 further comprising: a means forstrategizing virtual device I/O operation requests, the strategizingincluding forming at least one physical device I/O operation using theinformation from the virtual device I/O operation request; and a meansfor transmitting the at least one physical device I/O operation.
 29. Theapparatus of claim 27 wherein the means for transmitting the new messageto a means for strategizing virtual device I/O operation requests isfurther operable for transmitting the at least one physical device I/Ooperation to a storage device.